package com.mtnz.njk.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.OrderBy;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @Description: 我看过的历史
 * @Author: ZPX
 * @CreateDate: 2019/8/5 10:03
 * @Version: 1.0
 */
@Data
@Table(name = "history")
public class HistoryEntity {
    @Column(name = "history_id")
    private String historyId;
    private String subject;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @OrderBy(value = "DESC")
    @Column(name = "create_date")
    private Date createDate;
    private String id;
    private String status;
    private String type;
    @Column(name = "user_id")
    private String userId;
    private String url;

    @Transient
    private String userName;
    @Transient
    private String img;

}
